       {%include file="index.header.tpl.php"%}
{%include file="index.left.tpl.php"%}
  <!--主要内容开始-->
  <div class="content-wrapper">
    <section class="content">
      <div class="row">
          <section class="col-lg-2 connectedSortable" style=" padding-right:0px;">
            <div>
                <a href="index.php?a=resources.index" class="btn btn-default">教学资源</a>
                <a href="index.php?a=resources.collect" class="btn btn-default">我的收藏</a>
            </div>
            </section>
        <section class="col-lg-10 connectedSortable">
         <div class="box box-default box-solid">
                <div class="box-body">
          <div style="clear:both; height:10px;"></div>
                     <table class="table table-bordered bai"  id="mytable">
                                <thead>
                                    <tr>
                                        <td>标题</td>
                                        <td>分类</td>
                                        <td>格式</td>
                                        <td>上传人</td>
                                        <td>大小
                                           <i class="fa fa-sort-amount-asc"></i><i class="fa fa-sort-amount-desc"></i>
                                         </td>
                                        <td>上传时间</td>
                                        <td  width="124">操作</td>
                                        <td width="70">下载次数</td>
                                    </tr> 
                                </thead>
                                <tbody>
                                 {%foreach from=$name_lists key=keyn item=fn%}
                                    <tr>
                                        <td>{%$fn.file_theme%}</td>
                                        <td>{%$fn.dir_name%}</td>
                                        <td>{%$fn.file_type%}</td>
                                        <td>{%$fn.class_id%}</td>
                                        <td>{%$fn.file_size%}</td>
                                        <td>{%$fn.file_date%}</td>
                                 <td>
                                            <a href="index.php?a=resources.info&file_id={%$fn.file_id%}" class="wide" target="view_blank">阅</a>
                                            <a href="index.php?a=resources.down&file_id={%$fn.file_id%}" class="wide" target="view_blank">下</a>
                                            <a href="index.php?a=resources.update&file_id={%$fn.file_id%}" class="wide" target="view_blank">改</a>
                                           <a href="index.php?a=resources.ext&file_id={%$fn.file_id%}" class="wide" target="view_blank">藏</a>
                                            <a href="index.php?a=resources.del&file_id={%$fn.file_id%}" onclick="if(confirm('警告！确认删除信息?')==false)return false;" class="wide" >删</a>
                                        </td>
                                        <td>{%$fn.file_down%}</td>

                                    </tr>
                                     {%/foreach%}   
                            </tbody>
                        </table>
           </div><!--box-body -->
             
               {%$page%}
           </div><!--box box-default box-solid-->
        </section>   
           
        </div><!--row-->
    </section>
 </div>
  <!--主要内容结束--> 
     {%include file="index.footer.tpl.php"%}